<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class UserResource extends JsonResource
{
    public function toArray($request)
    {
        $user=[];
        $user['id']=$this->id;
        $user['name']=$this->name;
        $user['icon']=$this->icon;
        return $user;
    }
}
